//中间左部的选项卡滑动效果
function leftSideSlip(hignName,name)
{
	var i;
	$(name).hover(
	function(){
		for(i=0;i<3;i++)
		{
			if($(highName+":eq("+i+")").attr("class") == "bg_color")
			{
				$(highName+":eq("+i+")").removeClass("bg_color");
				$(highName+":eq("+i+")"+" span").removeClass("title_span");
				$(highName+":eq("+i+")"+" a").removeClass("left_a_margin");
				break;
			}
		}
		$(name).addClass("bg_color");
		$(name+" span").addClass("title_span");
		$(name+" a").addClass("left_a_margin");
	},
	function(){
		$(name).removeClass("bg_color");
		$(name+" span").removeClass("title_span");
		$(name+" a").removeClass("left_a_margin");
		var j;
		for(j=0;j<3;j++)
		{
			if($(highName+":eq("+i+")").attr("class") == "bg_color")
			{
				j=-1;
				break;
			}
		}
		if(j != -1)
		{
			$(highName+":eq("+i+")").addClass("bg_color");
			$(highName+":eq("+i+")"+" span").addClass("title_span");
			$(highName+":eq("+i+")"+" a").addClass("left_a_margin");
		}
	});
}

//分页的滑动效果
var pageName = ".body_wrapper_center_right_pages a";
var term = pageName+"[class*='right_page_current']";
//数字分页效果
function pageSlipchoose(pageNo)
{
	$(term).removeClass("right_page_current");
	$(pageName+":eq("+pageNo+")").addClass("right_page_current");
}
//向前一页分页效果
function pageSlipPre()
{
	var pageNum = parseInt($(term).text()) - 1;
	$(term).removeClass("right_page_current");
	if(pageNum > 0)
	{
		$(pageName+":eq("+pageNum+")").addClass("right_page_current");
	}
	else
	{
		$(pageName+":eq(1)").addClass("right_page_current");
	}	
}
//向后一页分页效果
function pageSlipNxt()
{
	var pageNum = parseInt($(term).text()) + 1;
	$(term).removeClass("right_page_current");
	if(pageNum < 6)
	{
		$(pageName+":eq("+pageNum+")").addClass("right_page_current");
	}
	else
	{
		$(pageName+":eq(5)").addClass("right_page_current");
	}
}
//删除团队人员信息
function deleteTeam()
{
	$(":checked").parent().parent().remove();
	
}
$(function(){
		$(document).pjax("a.pjax", '#content');
})